package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.base.HLString;
import HLLib.ui.HLUIControlText;

public class HLClassUIControlText extends HLLibClass {
    public HLClassUIControlText(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLUIControlText();
    }

    public void Execute(HLObject self, int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            ((HLUIControlText) self).SetText((HLString)args.GetObject(0), (char)args.GetInt(0));
            break;
        }
        }
    }
}
